package com.ct.state.mapper;

import com.ct.state.model.StateCardModel;
import com.ct.state.model.StateOrderModel;
import com.ct.state.model.StateOsBroswerModel;
import com.ct.state.model.StateProvinceCityModel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 系统日志 Mapper 接口
 * </p>
 *
 * @author Auto Generator
 * @since 2023-08-17
 */
public interface StateMapper {


    /**
     * 统计四个卡片数据信息
     * @param systemId
     * @return
     */
    StateCardModel stateCard(@Param("systemId") Long systemId);

    /**
     * 统计用户城市占比
     * @param systemId
     * @param type
     * @return
     */
    List<StateProvinceCityModel> statePCData(@Param("systemId") Long systemId,@Param("type")String type);

    /**
     * 统计订单占比
     * @param systemId
     * @param type
     * @return
     */
    List<StateOrderModel> stateOrderData(@Param("systemId") Long systemId, @Param("type")String type);

    /**
     * 统计os和浏览器占比
     * @param systemId
     * @param type
     * @return
     */
    List<StateOsBroswerModel> statePlatformData(@Param("systemId") Long systemId, @Param("type")String type);


}
